#ifndef CFORMAT_H
#define CFORMAT_H

#include <QString>

class CFormat
{
public:
    QString paperSize;
    QString cut;
public:
    CFormat(){}
    CFormat(const QString &paperSize, const QString &cut)
    {
        this->paperSize = paperSize;
        this->cut = cut;
    }
};

 inline bool operator<(const CFormat &f1, const CFormat &f2)
 {
     if (f1.paperSize != f2.paperSize)
         return f1.paperSize < f2.paperSize;
     return f1.cut < f2.cut;
 }

#endif // CFORMAT_H
